home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / sidebar / nsISidebar.h
Encoding:
C/C++ Source or Header  |  2006-05-08  |  4.8 KB  |  118 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISidebar.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISidebar_h__
  6. #define __gen_nsISidebar_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISidebar */
  19. #define NS_ISIDEBAR_IID_STR "577cb745-8caf-11d3-aaef-00805f8a4905"
  20.  
  21. #define NS_ISIDEBAR_IID \
  22.   {0x577cb745, 0x8caf, 0x11d3, \
  23.     { 0xaa, 0xef, 0x00, 0x80, 0x5f, 0x8a, 0x49, 0x05 }}
  24.  
  25. class NS_NO_VTABLE nsISidebar : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISIDEBAR_IID)
  29.  
  30.   /* void addPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */
  31.   NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) = 0;
  32.  
  33.   /* void addPersistentPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */
  34.   NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) = 0;
  35.  
  36.   /* void addSearchEngine (in string engineURL, in string iconURL, in wstring suggestedTitle, in wstring suggestedCategory); */
  37.   NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) = 0;
  38.  
  39. };
  40.  
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSISIDEBAR \
  43.   NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL); \
  44.   NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL); \
  45.   NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSISIDEBAR(_to) \
  49.   NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return _to AddPanel(aTitle, aContentURL, aCustomizeURL); } \
  50.   NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return _to AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \
  51.   NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) { return _to AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSISIDEBAR(_to) \
  55.   NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPanel(aTitle, aContentURL, aCustomizeURL); } \
  56.   NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \
  57.   NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } 
  58.  
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61.  
  62. /* Header file */
  63. class nsSidebar : public nsISidebar
  64. {
  65. public:
  66.   NS_DECL_ISUPPORTS
  67.   NS_DECL_NSISIDEBAR
  68.  
  69.   nsSidebar();
  70.  
  71. private:
  72.   ~nsSidebar();
  73.  
  74. protected:
  75.   /* additional members */
  76. };
  77.  
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsSidebar, nsISidebar)
  80.  
  81. nsSidebar::nsSidebar()
  82. {
  83.   /* member initializers and constructor code */
  84. }
  85.  
  86. nsSidebar::~nsSidebar()
  87. {
  88.   /* destructor code */
  89. }
  90.  
  91. /* void addPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */
  92. NS_IMETHODIMP nsSidebar::AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* void addPersistentPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */
  98. NS_IMETHODIMP nsSidebar::AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* void addSearchEngine (in string engineURL, in string iconURL, in wstring suggestedTitle, in wstring suggestedCategory); */
  104. NS_IMETHODIMP nsSidebar::AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* End of implementation class template. */
  110. #endif
  111.  
  112. // {577CB744-8CAF-11d3-AAEF-00805F8A4905} 
  113. #define NS_SIDEBAR_CID \
  114. { 0x577cb744, 0x8caf, 0x11d3, { 0xaa, 0xef, 0x0, 0x80, 0x5f, 0x8a, 0x49, 0x5 } }
  115. #define NS_SIDEBAR_CONTRACTID "@mozilla.org/sidebar;1"
  116.  
  117. #endif /* __gen_nsISidebar_h__ */
  118.